package lab2;

import java.util.Iterator;

public interface MyMap<K, V> {

	static interface Entry<K, V> {

		boolean equals(Object o);

		K getKey();

		V getValue();

		Entry<K, V> getNext();

		void setNext(Entry<K, V> e);

		int getHash();

		int hashCode();

		V setValue(V value);
	}

	void clear();

	boolean containsKey(K key);

	boolean containsValue(V value);

	V get(K key);

	boolean isEmpty();

	V put(K key, V value);

	V remove(K key);

	int size();

	Iterator<Entry<K, V>> entryIterator();
}
